/**
 * Cider
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.xunk.common.core.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 杨文栋
 * @version SysFile.java, v 0.1 2021-03-10 16:10 杨文栋 Exp $$
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class UploadFile {
    /**
     * 文件名称
     */
    private String name;

    /**
     * 文件地址
     */
    private String url;
    private String path;
    private String domain;

    public UploadFile(String name, String domain, String path) {
        this.name = name;
        this.path = path;
        this.domain = domain;
    }

    public String getUrl() {
        return this.domain + "/" + this.path;
    }
}
